//
// DeviceFile.cpp
// Usage: VFS Device file object
// CreateDate: 2009-05-20
// Author: MaJiuyue
//
#include "DeviceFile.h"

DeviceFile::DeviceFile(const char *name, u32 inode, u32 length, FileSystem *fs)
	: File(name, inode, length, fs, FT_DEVICE)
{

}

void DeviceFile::open()
{
	File::open();
}

void DeviceFile::close()
{
	File::close();
}

int DeviceFile::read(int off, size_t size, addr_t buf)
{
	return fs->read(inode, off, size, buf);
}

int DeviceFile::write(int off, size_t size, addr_t buf)
{
	return fs->write(inode, off, size, buf);
}

